package com.shensi.adminCollect.mapper.customer;

import com.shensi.adminCollect.domain.customer.CustomerCardSetting;
import com.shensi.adminCollect.domain.customer.CustomerCardSettingDetail;

import java.util.List;

/**
 * 客户电子会员卡充值优惠设置明细Mapper接口
 *
 * @author qujia
 * @date 2021-04-06
 */
public interface CustomerCardSettingDetailMapper
{
    /**
     * 查询客户电子会员卡充值优惠设置明细
     *
     * @param id 客户电子会员卡充值优惠设置明细ID
     * @return 客户电子会员卡充值优惠设置明细
     */
    public CustomerCardSettingDetail selectCustomerCardSettingDetailById(Long id);

    /**
     * 查询客户电子会员卡充值优惠设置明细列表
     *
     * @param customerCardSettingDetail 客户电子会员卡充值优惠设置明细
     * @return 客户电子会员卡充值优惠设置明细集合
     */
    public List<CustomerCardSettingDetail> selectCustomerCardSettingDetailList(CustomerCardSettingDetail customerCardSettingDetail);

    /**
     * 新增客户电子会员卡充值优惠设置明细
     *
     * @param customerCardSettingDetail 客户电子会员卡充值优惠设置明细
     * @return 结果
     */
    public int insertCustomerCardSettingDetail(CustomerCardSettingDetail customerCardSettingDetail);

    /**
     * 修改客户电子会员卡充值优惠设置明细
     *
     * @param customerCardSettingDetail 客户电子会员卡充值优惠设置明细
     * @return 结果
     */
    public int updateCustomerCardSettingDetail(CustomerCardSettingDetail customerCardSettingDetail);

    /**
     * 删除客户电子会员卡充值优惠设置明细
     *
     * @param id 客户电子会员卡充值优惠设置明细ID
     * @return 结果
     */
    public int deleteCustomerCardSettingDetailById(Long id);

    /**
     * 批量删除客户电子会员卡充值优惠设置明细
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteCustomerCardSettingDetailByIds(Long[] ids);

    public void deleteCustomerCardSettingDetail(CustomerCardSettingDetail detil);

    public List<CustomerCardSettingDetail> listDetailInfo(CustomerCardSetting customerCardSetting);

    /**
     * 修改客户电子会员卡充值优惠设置明细 删除标识
     *
     * @param detil 客户电子会员卡充值优惠设置明细  删除标识
     * @return 结果
     */
    public  int updateDetail(CustomerCardSettingDetail detil);
}
